1. Modify the web.config file in <optimidoc_install_folder>\WebApp folder.

Find following section in WebApp\web.config:


 <entityFramework>

   <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlCeConnectionFactory, EntityFramework" />

 </entityFramework>

 <connectionStrings>

   <add name="OptimiDoc.Dao.OptimiDocDbContext" providerName="System.Data.SqlServerCe.4.0" connectionString="Data Source=|DataDirectory|\db.sdf" />

 </connectionStrings>


and replace it by following settings.


<entityFramework>

   <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />

 </entityFramework>

 <connectionStrings>

   <add connectionString="Server=<serverName>;Database=<database_name>;User ID=<user_name>;Password=<password>" name="OptimiDoc.Dao.OptimiDocDbContext" providerName="System.Data.SqlClient" />

 </connectionStrings>


Example from previous installation:


 <entityFramework>

   <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />

 </entityFramework>

 <connectionStrings>

   <add connectionString="Server=WIN-0MLBCMER9B6\OPTIMIDOC;Database=OptimiDoc;User ID=sa;Password=OptimiDoc2014" name="OptimiDoc.Dao.OptimiDocDbContext" providerName="System.Data.SqlClient" />

 </connectionStrings>



2. Restart the OptimiDoc website in IIS manager.


3. Open the OptimiDoc webpage and login by admin/admin. The authentication result is Credentials incorect.


4. Restart OptimiDoc website once again and login on the OptimiDoc webpage by admin/admin.


5. The change to SQL server is finished.